<?php

class SiteMaintenance
{
	function SiteMaintenance() {}
	
	public function checkSiteMaintenance()
	{
		$CI =& get_instance();
	
		if(SITE_MAINTENANCE)
		{
			ob_clean();
			$CI->lang->load('maintenance');
			$viewdata['CI'] = $CI;
			echo $CI->load->view('maintenance', $viewdata, true);
			die;	
		}
	}
}